﻿using AiXiu.BLL;
using AiXiu.Common;
using AiXiu.IBLL;
using AiXiu.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AiXiu.WebSite
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            TBLogins logins = new TBLogins();
            logins.UserName = txtUserName.Text;
            logins.MobileNumber = txtNumber.Text;
            logins.Password = txtPassword.Text;
            IUserBLL userBLL = new UserBLL();
            int n =userBLL.AddUser(logins);
            if (n > 0)
            {
                //this.Alert("addsuccess", "用户注册成功！");
                this.AlertAndRedirect("addsuccess", "用户注册成功!", "WebForm1.aspx");
            }
        }
    }
}